<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/style.css">
</head>
<body>
<?php $this->load->view('header');?>
	<div class="container banner">
		<section class="box">
		    <ul class="texts">
				<p>我们不停的翻弄着回忆</p>
				<p>却再也找不回那时的自己</p>
				<p>红尘一梦，不再追寻</p>
		    </ul>
  		</section>
	</div>
	<hr />
	<div class="container">
		<div class="row">
		    <div class="col-md-8 item">
		    <?php foreach($articles as $article){?>
			  	<p class="item_title"><a href="<?php echo site_url('blog/view/'.$article->id);?>"><?php echo $article->title; ?></a><span>阅读次数：<?php echo $article->view; ?></span></p>
			  	<img src="<?php echo base_url().'public/'.$article->img;?>" />
			  	<div class=" clearfix">
				  	<p><?php echo $article->desc; ?></p>
				  	<p class="item_time"><i class="glyphicon glyphicon-time"></i><?php echo date('Y-m-d',$article->create_time); ?></p>
				  	<a class="btn btn-success btn-sm item_btn" href="<?php echo site_url('blog/view/'.$article->id);?>">阅读全文>></a>
			  	</div>
		    <?php } ?>
		  	</div>
		</div>
	</div>
</body>
</html>